import {http} from '../utils/index.js'

export const loadCity=()=>{
    return http.get('/aj/getcitycode')
}

export const loadAreas=(citycode)=>{
    return http.get('/aj/get_area', {params: { citycode }})
}


export const loadCoordinate=(parameters)=>{
    return http.get('https://restapi.amap.com/v3/geocode/geo', {params: { ...parameters }})
}